package com.xbn.xbnmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xbn.common.utils.PageUtils;
import com.xbn.xbnmall.product.entity.SpuInfoDescEntity;
import com.xbn.xbnmall.product.entity.SpuInfoEntity;
import com.xbn.xbnmall.product.vo.addProductVo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author XBN
 * @email 78742541@qq.com
 * @date 2020-06-26 13:42:03
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);


    PageUtils queryPageByCondition(Map<String, Object> params);

    /*
    * 商品上架
    * */
    void up(Long spuId);

    SpuInfoEntity getSpuBySkuId(Long skuId);
}

